package com.ych.builder;

/**
 * 建造男人
 * Created by 灰灰 on 2017/6/29.
 */
public class ManBuilder implements PersonBuilder {

    public Person buildPerson() {
        return person;
    }
    @Override
    public void buildHead() {
        person.setHead("建造男人的头");
    }

    @Override
    public void buildBody() {
        person.setBody("建造男人的小肚腩");
    }

    @Override
    public void buildFoot() {
        person.setFoot("建造男人的大长腿");
    }
    public ManBuilder() {
        person = new Man();
    }
    /**
     * 抽象基类
     */
    Person person;


}
